@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --md-sys-color-primary: #006C51;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #89F8D7;
  --md-sys-color-on-primary-container: #002117;
  --md-sys-color-secondary: #4C6358;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #CFE9DB;
  --md-sys-color-on-secondary-container: #092017;
  --md-sys-color-surface: #FBFDF9;
  --md-sys-color-on-surface: #191C1A;
  --md-sys-color-surface-variant: #DCE5DD;
  --md-sys-color-on-surface-variant: #404943;
  --md-sys-color-outline: #707973;
  --md-sys-color-outline-variant: #C0C9C1;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --md-sys-color-inverse-surface: #2E312F;
  --md-sys-color-inverse-on-surface: #EFF1ED;
  --md-sys-color-inverse-primary: #6CDBBC;
  --md-sys-color-surface-tint: #006C51;
  --md-sys-color-surface-tint-color: #006C51;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: var(--md-sys-color-surface);
  padding-bottom: 14vw;
}

/* 顶部应用栏样式 */
.mdc-top-app-bar {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  height: 56px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.mdc-top-app-bar__row {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0 16px;
}

.mdc-top-app-bar__section {
  display: flex;
  align-items: center;
}

.location-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--md-sys-color-on-primary);
}

.location-text {
  font-size: 16px;
  font-weight: 500;
}

/* 搜索栏样式 */
.search-container {
  padding: 16px;
  background-color: var(--md-sys-color-primary);
}

.mdc-text-field {
  width: 100%;
  height: 48px;
  background-color: var(--md-sys-color-surface);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.mdc-text-field__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  margin-left: 8px;
  background: transparent;
}

.mdc-text-field__icon {
  color: var(--md-sys-color-outline);
}

/* 分类导航样式 */
.category-container {
  padding: 24px 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  overflow: hidden;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 14px;
  color: var(--md-sys-color-on-surface);
}

/* 促销横幅样式 */
.promo-banner {
  margin: 16px;
  padding: 24px;
  background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-primary));
  border-radius: 16px;
  color: var(--md-sys-color-on-primary-container);
}

.promo-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-content h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-on-primary);
}

.promo-content p {
  font-size: 16px;
  color: var(--md-sys-color-on-primary);
  opacity: 0.8;
}

/* 会员卡片样式 */
.member-card {
  margin: 16px;
  padding: 16px;
  background-color: var(--md-sys-color-secondary-container);
  border-radius: 16px;
}

.member-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-info img {
  width: 48px;
  height: 48px;
}

.member-text h3 {
  font-size: 18px;
  color: var(--md-sys-color-on-secondary-container);
}

.member-text p {
  font-size: 14px;
  color: var(--md-sys-color-on-secondary-container);
  opacity: 0.8;
}

/* 推荐商家部分样式 */
.recommend-section {
  padding: 24px 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.divider {
  flex: 1;
  height: 1px;
  background-color: var(--md-sys-color-outline-variant);
}

.section-header h2 {
  font-size: 20px;
  color: var(--md-sys-color-on-surface);
}

/* 筛选选项样式 */
.filter-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

/* 商家列表样式 */
.business-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.business-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--md-sys-color-surface);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
}

.business-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.business-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.business-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.favorite-icon {
  color: var(--md-sys-color-outline);
}

.business-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  display: flex;
  color: #FFB800;
}

.rating-text {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.delivery-tag {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.business-delivery {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.business-tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 2px 8px;
  border-radius: 4px;
}

.business-promotions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promotion-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promotion-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.promotion-tag.new {
  background-color: #70BC46;
}

.promotion-tag.special {
  background-color: #F1884F;
}

.promotion-text {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
}

/* Material Design 按钮样式 */
.mdc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mdc-button--raised {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
}

.mdc-button--outlined {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-primary);
}

.mdc-button--text {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: none;
}

.mdc-button:hover {
  opacity: 0.9;
}

.mdc-button:active {
  opacity: 0.8;
}

.practice-text {
  color: var(--md-sys-color-on-primary);
  font-size: 14px;
  font-weight: 500;
}

.mdc-top-app-bar__section--align-end {
  position: relative;
  width: 100%;
  text-align: right;
}

.mdc-top-app-bar__section--align-end .practice-text {
  font-size: 2.8vw;
  color: #fff;
  opacity: 0.8;
  margin-right: 2vw;
  font-weight: normal;
  display: inline-block;
}

/****************** 底部菜单部分 ******************/
.footer{
  width: 100%;
  height: 14vw;
  border-top: solid 1px #DDD;
  background-color: #fff;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
}
.footer li{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #999;
  user-select: none;
  cursor: pointer;
}
.footer li:not(:last-child) {
  border-right: solid 1px #DDD;
}
.footer .active{
  color: var(--md-sys-color-primary);
}
.footer li p{
  font-size: 2.8vw;
}
.footer li i{
  font-size: 5vw;
}

/****************** Address Selector ******************/
.address-selector {
  position: relative;
}

.current-address {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--md-sys-color-on-primary);
}

.address-text {
  font-size: 16px;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/****************** Search Bar ******************/
.search-input {
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
}

.search-input i {
  color: #999;
  margin-right: 8px;
}

.search-input input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  background: none;
}
